package com.ws.repository;

import com.github.pagehelper.Page;
import com.ws.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierRepository {
    Page<Supplier> getSupplierPage(Supplier supplier);

    void saveSupplier(Supplier supplier);

    Supplier getSupplierBasicInfo(@Param("supplierId")Long supplierId);

    void delSupplier(@Param("supplierId")Long supplierId);

    void updateSupplier(Supplier supplier);

    List<Supplier> getSupplierList(Supplier supplier);
}